package com.vogue.supplymall.account.domain.dto;

import com.vogue.supplymall.common.domain.validate.Length;
import com.vogue.supplymall.common.domain.validate.NotEmpty;
import com.vogue.supplymall.common.domain.validate.Regex;
/**
 * 接收前端的地址信息DTO<br>
 * 
 * @author 崔岳
 *
 */
public class AddressDTO implements java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6343133652660302738L;

	/** 主键 */
	private String id;
	
	/** 收货人姓名 */
	@NotEmpty(name="name")
	@Length(min=0, max=50, name="goodsReceiptName")
	private String name;
	
	/** 收货人手机 */
	@NotEmpty(name="tel")
	@Length(min=11, max=16, name="goodsReceiptTel")
	@Regex(name="tel", regexcontent="tel")
	private String tel;
	
	/** 收货地址 */
	@NotEmpty(name="addr")
	@Length(min=0, max=255, name="addr")
	private String addr;
	
	/** 标签类型（1：个人 2：家 3：公司 4：店铺） */
	private Integer type = 1;
	
	/** 默认标志（0：否 1：是） */
	private Boolean defaultflag = false;

	/** 区域 */
	@NotEmpty(name="area")
	@Length(min=0, max=32, name="area")
    private String area="";

    /** 省 */
    @NotEmpty(name="province")
	@Length(min=0, max=32, name="province")
    private String province;

    /** 市 */
    @NotEmpty(name="city")
	@Length(min=0, max=32, name="city")
    private String city;

    /** 区 */
    @Length(min=0, max=32, name="country")
    private String country="";
    
    /** 区域名称 */
    private String areaname;

    /** 省名称 */
    private String provincename;

    /** 市名称 */
    private String cityname;

    /** 区名称 */
    private String countryname;
    
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setId(Long id) {
		this.id = id.toString();
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Boolean getDefaultflag() {
		return defaultflag;
	}

	public void setDefaultflag(Boolean defaultflag) {
		this.defaultflag = defaultflag;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getAreaname() {
		return areaname;
	}

	public void setAreaname(String areaname) {
		this.areaname = areaname;
	}

	public String getProvincename() {
		return provincename;
	}

	public void setProvincename(String provincename) {
		this.provincename = provincename;
	}

	public String getCityname() {
		return cityname;
	}

	public void setCityname(String cityname) {
		this.cityname = cityname;
	}

	public String getCountryname() {
		return countryname;
	}

	public void setCountryname(String countryname) {
		this.countryname = countryname;
	}
	
}
